package com.joysuch.wwyt.workflow.bean;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @Author ZhangDong
 * @Date 2020/12/16 11:06
 */
@Data
public class WorkFlowRailAlarmConfigBean implements Serializable {

    @ApiModelProperty("主键ID")
    private Long id;
    @ApiModelProperty("流程节点ID")
    @NotNull(message = "processId 不能为空")
    private Long processId;
    @ApiModelProperty("生效时间")
    @NotEmpty(message = "请选择生效时间")
    private String effectiveTime;
    @ApiModelProperty("开始节点")
    private String startNode;
    @ApiModelProperty("结束节点")
    private String endNode;
    @ApiModelProperty("开始时间")
    private String startTimeKey;
    @ApiModelProperty("结束时间")
    private String endTimeKey;
    @ApiModelProperty("报警规则")
    @NotEmpty(message = "报警规则不能为空")
    private String alarmRule;
    @ApiModelProperty("允许进入")
    private boolean permitEnter;
    @ApiModelProperty("离岗报警")
    private boolean leaveAlarm;


}
